import request from '@/utils/request'

// 查询通告汇总列表
export function listNoticeSum(query) {
  return request({
    url: '/system/noticeSum/list',
    method: 'get',
    params: query
  })
}

// 查询通告汇总详细
export function getNoticeSum(id) {
  return request({
    url: '/system/noticeSum/' + id,
    method: 'get'
  })
}

// 新增通告汇总
export function addNoticeSum(data) {
  return request({
    url: '/system/noticeSum',
    method: 'post',
    data: data
  })
}

// 修改通告汇总
export function updateNoticeSum(data) {
  return request({
    url: '/system/noticeSum',
    method: 'put',
    data: data
  })
}

// 删除通告汇总
export function delNoticeSum(id) {
  return request({
    url: '/system/noticeSum/' + id,
    method: 'delete'
  })
}
